package com.czy.booktest02.demos.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czy.booktest02.demos.common.dtos.ResponseResult;
import com.czy.booktest02.demos.pojo.dto.*;
import com.czy.booktest02.demos.pojo.po.Book;
import com.czy.booktest02.demos.pojo.po.Books;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 *
 **/
public interface BookService {

    ResponseResult addOrUpdateBook(BookDto bookDto);

    /**
     * 书城条件分页查询
     * @param page
     * @param wrapper
     * @return
     */
    Page<Books> selectPage(Page<Books> page, QueryWrapper<Books> wrapper);



    /**
     * 根据id获取书本信息
     * @param id
     * @return
     */
    Books getOneBook(Integer id);



    ResponseResult categoryAndId();

    ResponseResult publisherAndId();

    ResponseResult recommend(BookRASDto bookRASDto);


    ResponseResult status(BookRASDto bookRASDto);

    ResponseResult deleteBook(String id);

    ResponseResult manageCategory(String category);

    ResponseResult updateCategory(CategoryUpdateDto categoryUpdateDto);

    ResponseResult managePublisher(String publisher);

    ResponseResult updatePublisher(PublisherUpdateDto publisherUpdateDto);


    ResponseResult showBook();

}
